/*
 * Copyright by Deppon and the original author or authors.
 *
 * This document only allow internal use ,Any of your behaviors using the file
 * not internal will pay legal responsibility.
 *
 * You may learn more information about Deppon from
 *
 *
 *      http://www.deppon.com
 *
 */
package com.readboottest.constant;

/**
 * @author: yadongcui
 * @date: 2019-03-25 19:07
 * @description：全局常量
 */
public class GlobalConstants {


    /*************************** 响应状态 ****************************/

    /**
     * 成功
     */
    public static final String SUCCESS = "success";

    /**
     * 失败
     */
    public static final String FAIL = "fail";

    /**
     * 是
     */
    public static final String IS_YES = "YES";

    /**
     * 否
     */
    public static final String IS_NO = "NO";

    /**
     * 是
     */
    public static final String IS_Y = "Y";

    /**
     * 否
     */
    public static final String IS_N = "N";


    /*************************** 系统编码 ****************************/



    /*************************** 拦截器 ****************************/

    /**
     * 拦截器过滤路径配置：session拦截器
     */
    public static final String INTERCEPTOR_PATH_SESSION = "/rfy/**";

    /**
     * 拦截器过滤路径配置：登录拦截器
     */
    public static final String INTERCEPTOR_PATH_LOGIN = "/**/secure/**";


    /*************************** ECO_SESSION ****************************/

    /**
     * session默认过期时间
     */
    public static final int SESSION_TIMEOUT_DEFAULT = 1800;



    /*************************** 系统异常 ****************************/
    /**
     * 服务端异常
     */
    public static final String EXCEPTION_SERVER = "服务端异常";




    /*************************** 单位 ****************************/

    /**
     * 单位转换，毫秒到秒
     */
    public static final int UNIT_MILLSECOND2SECOND = 1000;


    /*************************** 单位 ****************************/

    /**
     * UTF-8编码
     */
    public static final String ENCODING_UTF8 = "UTF-8";


    /*************************** response ****************************/

    /**
     * 未登录时，响应给前端code
     */
    public static final String RESPONSE_NOLOGIN_STATUS = "901";


    /**
     * 未登录时，响应给前端code
     */
    public static final String RESPONSE_NOLOGIN_MESSAGE = "未登录";


    /*************************** 特俗符号 ****************************/
    /**
     * 特俗符号：*
     */
    public static final String SPECIAL_SYMBOL_ALL = "*";

    /**
     * feign远程调用
     */
    public static final String HEADER_FEIGIN_REMOTE_CALL = "header_feigin_remote_call";

}
